<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>[%$lngpack.member_title%] - [%$lngpack.sitename%]</title>
<meta name="keywords" content="[%$lngpack.keyword%]" />
<meta name="description" content="[%$lngpack.description%]" />
<link href="[%$url%]templates/greenhotel/style/user.css?v=[%$softversion%]" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="[%$url%]templates/greenhotel/js/jquery.js?v=[%$softversion%]"></script>
<script type="text/javascript" src="[%$url%]js/basicrun.js?v=[%$softversion%]"></script>
<script type="text/javascript">
var active_menu = "index";
</script>
</head>
<body>
[%include file="greenhotel/cn/public/head.html"%]
<div id="pageNav" class="maxWidth">
	<p>当前位置：<a href="[%$url%]">[%$lngpack.sitename%]</a> &raquo; [%$lngpack.member_title%]
</p>
</div>
<div class="clearLine10"></div>
<div class="maxWidth">
	<div id="framecenter">
        <div class="tbottonlist">
            <div class="tg">操作功能</div>
            [%beark name=memmenu class=$lng%]
        </div>
        <div class="userright">
        [%if $out=='center'%]
        	<div class="filterorder">
            	<div class="filterbox"><span class="u">[%$member.username%]</span> 欢迎您登录会员中心</div>
            </div>
            <table>
            	<tr>
                	<td class="s1">您上次登录的时间为：</td>
                    <td class="s2">[%$member.lasttime|timeformat(3)%]</td>
                </tr>
                <tr>
                	<td class="s1">您上次登录的IP为：</td>
                    <td class="s2">[%$member.lastip|ip(0)%]</td>
                </tr>
                <tr>
                	<td class="s1">您的会员等级为：</td>
                    <td class="s2">[%$member.rankname%]</td>
                </tr>
                <tr>
                	<td class="s1">您的会员积分为：</td>
                    <td class="s2">[%$member.integral%]</td>
                </tr>
                <tr>
                	<td class="s1">您的登录次数为：</td>
                    <td class="s2">[%$member.visitcount%]次</td>
                </tr>
                <tr>
                	<td class="s1">您的可以操作：</td>
                    <td class="s2"><a class="infolink02" href="[%$mlink.memedit_info%]">资料修改</a> <a class="infolink02" href="[%$mlink.memedit_password%]">密码修改</a> <a class="infolink02" href="[%$mlink.quit%]">退出</a></td>
                </tr>
            </table>
            <div class="filterorder">
            	<div class="filterbox">订单中心提示</div>
            </div>
             <table>
                <tr>
                	<td colspan="2">您在本站共提交了 <u>[%$ordernum%]</u> 个酒店订单 <a href="[%$mlink.orderlist%]" class="r">点击查看订单列表</a></td>
                </tr>
            </table>
            [%elseif $out=='editinfo'%]
            <!--个人资料修改-->
		<script type="text/javascript" src="[%$url%]js/ajax_city.js"></script>
		<script type="text/javascript">
		$(function() {
		    sec_cityone('[%$member.country%]','[%$member.province%]');
		    sec_citytwo('[%$member.province%]','[%$member.city%]');
		    sec_district('[%$member.city%]','[%$member.district%]');
		});
		var citytwo_title = "[%$lngpack.citytwo_title%]";
		var citythree_title = "[%$lngpack.citythree_title%]";
		var district_title = "[%$lngpack.district_title%]";
		var birthday_empty = "[%$lngpack.birthday_empty%]";
		var zipcode_empty = "[%$lngpack.zipcode_empty%]";
		var qq_empty = "[%$lngpack.qq_empty%]";
		</script>
        	<div class="filterorder"><div class="filterbox">个人资料修改</div></div>
            <form name="editmember" id="editmember" method="post" action="[%$mlink.membersave%]" onsubmit="return editinfo()">
            <input type="hidden" name="upurl" value="[%$upurl%]">
            <input type="hidden" name="inputclass" value="editinfo">
            <input type="hidden" name="userid" value="[%$member.userid%]">
            <input type="hidden" name="username" value="[%$member.username%]">
            <input type="hidden" name="email" value="[%$member.email%]">
            <table>
                <tr>
                    <td class="s1">用户名：</td>
                    <td class="s2"><u>[%$member.username%]</u></td>
                </tr>
                <tr>
                    <td class="s1">电子邮箱：</td>
                    <td class="s2"><u>[%$member.email%]</u></td>
                </tr>
                <tr>
                    <td class="s1">姓名（昵称）：</td>
                    <td class="s2"><input type="text" name="alias" value="[%$member.alias%]" maxlength="50" size="30" class="infoInput"></td>
                </tr>
                <tr>
                    <td class="s1">性别：</td>
                    <td class="s2">
                    <input type="radio" value="1" name="sex" [%if $member.sex==1%]checked[%/if%]> 男&nbsp;
                    <input type="radio" value="0" name="sex" [%if $member.sex==0%]checked[%/if%]> 女
                    </td>
                </tr>
                <tr>
                    <td class="s1">生日：</td>
                    <td class="s2"><input type="text" name="birthday" value="[%$member.birthday|timeformat(2)%]" maxlength="100" class="infoInput" size="20"> <span>请按"2000-00-00"格式进行填写</span></td>
                </tr>
                <tr>
                    <td class="s1">地区：</td>
                    <td class="s2">
                        <select size="1" name="cityone" class="select" id="cityone">
                            <option value="0" [%if $member.country==0%]selected[%/if%]>[%$lngpack.cityone_title%]</option>
                            <option value="1" [%if $member.country==1%]selected[%/if%]>中国</option>
                        </select>
                        <select size="1" name="citytwo" class="select" id="citytwo">
                            <option selected value="0">[%$lngpack.citytwo_title%]</option>
                        </select>
                        <select size="1" name="citythree" class="select" id="citythree">
                            <option selected value="0">[%$lngpack.citythree_title%]</option>
                        </select>
                        <select size="1" name="district" class="select" id="district">
                            <option selected value="0">[%$lngpack.district_title%]</option>
                        </select>
                        <span id="loading">正在读取</span>
                    </td>
                </tr>
                <tr>
                    <td class="s1">详细地址：</td>
                    <td class="s2"><input type="text" name="address" value="[%$member.address%]" maxlength="120" size="60" class="infoInput" ></td>
                </tr>
                <tr>
                    <td class="s1">邮编：</td>
                    <td class="s2"><input type="text" name="zipcode" value="[%$member.zipcode%]" maxlength="10" size="10" class="infoInput"></td>
                </tr>
                <tr>
                    <td class="s1">联系电话：</td>
                    <td class="s2"><input type="text" name="tel" value="[%$member.tel%]" maxlength="20" size="18" class="infoInput"></td>
                </tr>
                <tr>
                    <td class="s1">手机：</td>
                    <td class="s2"><input type="text" name="mobile" value="[%$member.mobile%]" maxlength="20" size="18" class="infoInput"></td>
                </tr>
                <tr>
                    <td class="s1">MSM：</td>
                    <td class="s2"><input type="text" name="msn" value="[%$member.msn%]" maxlength="50" size="30" class="infoInput"></td>
                </tr>
                <tr>
                    <td class="s1">QQ：</td>
                    <td class="s2"><input type="text" name="qq" value="[%$member.qq%]" maxlength="10" size="15" class="infoInput"></td>
                </tr>
                [%forlist from=$attrread key=i%]
                [%if $attrread[i].isline==1%]
                <tr>
                    <td colspan="2" class="s2">[%$attrread[i].typename%]</td>
                </tr>
                [%else%]
                <tr>
                    <td class="s1">[%$attrread[i].typename%]</td>
                    <td class="s2">
                    [%if $attrread[i].inputtype=='string'%]<input type="text"[%if$attrread[i].isvalidate==1%] onblur="if (this.value.match(/^[%$attrread[i].validatetext%]$/ig)==null){alert('[%$attrread[i].typename%][%$ST.input_err%]');return false;}" [%/if%]name="memberatt[[%$attrread[i].attrname%]]" size="[%$attrread[i].attrsize%]" maxlength="[%$attrread[i].attrlenther%]" value="[%$attrread[i].attrvalue%]" class="infoInput"/>[%/if%]
                    [%if $attrread[i].inputtype=='int'%]<input type="text" [%if$attrread[i].isvalidate==1%] onblur="if (this.value.match(/^[%$attrread[i].validatetext%]$/ig)==null){alert('[%$attrread[i].typename%][%$ST.input_err%]');return false;}" [%/if%]name="memberatt[[%$attrread[i].attrname%]]" size="[%$attrread[i].attrsize%]" maxlength="[%$attrread[i].attrlenther%]" value="[%$attrread[i].attrvalue%]" class="infoInput"/>[%/if%]
                    [%if $attrread[i].inputtype=='datetime'%]
                        <input type="text" id="dataselect" name="memberatt[[%$attrread[i].attrname%]]" size="[%$attrread[i].attrsize%]" value="[%$attrread[i].attrvalue%]" class="infoInput"/>
                    [%/if%]
                    [%if $attrread[i].inputtype=='img'%]
                        <input type="text" [%if$attrread[i].isvalidate==1%] onblur="if (this.value.match(/^[%$attrread[i].validatetext%]$/ig)==null){alert('[%$attrread[i].typename%][%$ST.input_err%]');return false;}" [%/if%]name="memberatt[[%$attrread[i].attrname%]]" id="[%$attrread[i].attrname%]" size="[%$attrread[i].attrsize%]" value="[%$attrread[i].attrvalue%]" class="infoInput"/>
                        <a class="filecheck" onclick="javascript:windowsdig('[%$ST.filemanage_select_title%]','iframe:index.php?archive=filemanage&action=filemanage&listfunction=filelist&filetype=img&checkfrom=input&fileinputid=[%$attrread[i].attrname%]','900px','480px','iframe')" href="#body">[%$ST.selectfile_botton%]</a>
                    [%/if%]
                    [%if $attrread[i].inputtype=='addon'%]
                        <input type="text" name="memberatt[[%$attrread[i].attrname%]]" id="[%$attrread[i].attrname%]" size="[%$attrread[i].attrsize%]" value="[%$attrread[i].attrvalue%]" class="infoInput"/>
                        <a class="filecheck" onclick="javascript:windowsdig('[%$ST.filemanage_select_title%]','iframe:index.php?archive=filemanage&action=filemanage&listfunction=filelist&filetype=img&checkfrom=input&fileinputid=[%$attrread[i].attrname%]','900px','480px','iframe')" href="#body">[%$ST.selectfile_botton%]</a>
                    [%/if%]
                    [%if $attrread[i].inputtype=='text'%]<textarea name="memberatt[[%$attrread[i].attrname%]]" cols="[%$attrread[i].attrsize%]" rows="[%$attrread[i].attrrow%]" class="infoInput">[%$attrread[i].attrvalue%]</textarea>[%/if%]
                    [%if $attrread[i].inputtype=='select'%]
                        <select size="1" name="memberatt[[%$attrread[i].attrname%]]">
                        [%forlist from=$attrread[i].attrvalue key=ii%]
                            <option [%if $attrread[i].attrvalue[ii].selected=='selected'%]selected="selected" [%/if%]value="[%$attrread[i].attrvalue[ii].name%]">[%$attrread[i].attrvalue[ii].name%]</option>
                        [%/forlist%]
                        </select>
                    [%/if%]
                    [%if $attrread[i].inputtype=='radio'%]
                        [%forlist from=$attrread[i].attrvalue key=ii%]
                        <input [%if $attrread[i].attrvalue[ii].selected=='selected'%]checked="checked" [%/if%]name="memberatt[[%$attrread[i].attrname%]]" type="radio" value="[%$attrread[i].attrvalue[ii].name%]" /> [%$attrread[i].attrvalue[ii].name%]
                        [%/forlist%]
                    [%/if%]
                    [%if $attrread[i].inputtype=='checkbox'%]
                        [%forlist from=$attrread[i].attrvalue key=ii%]
                            <input [%if $attrread[i].attrvalue[ii].selected=='selected'%]checked="checked" [%/if%]name="memberatt[[%$attrread[i].attrname%]][]" type="checkbox" value="[%$attrread[i].attrvalue[ii].name%]" /> [%$attrread[i].attrvalue[ii].name%]
                        [%/forlist%]
                    [%/if%]
                    [%if $attrread[i].attrcue!=''%]<span class="cautiontitle">[%$attrread[i].attrcue%]</span>[%/if%]
                    </td>
                </tr>
                [%/if%]
                [%/forlist%]
                <tr>
                    <td colspan="2" style="height:50px;line-height:50px;">
                        <input name="submit" type="submit" class="buttonface" value="确认修改资料"/>
                    </td>
                </tr>
            </table>
            </form>
            [%elseif $out=='editpassword'%]
            <!--密码修改-->
		<script type="text/javascript" src="[%$url%]js/passcheck.js"></script>
		<script type="text/javascript">
			var oldpassword_err = "[%$lngpack.oldpassword_err%]";
			var password_len = "[%$lngpack.password_err%]";
			var password_len2 = "[%$lngpack.password_len2%]";
			var password2_empty = "[%$lngpack.password2_err%]";
			var password_disaffinity = "[%$lngpack.password_equal%]";

			var password_err1 = "[%$lngpack.password_err1%]";
			var password_err2 = "[%$lngpack.password_err2%]";
			var password_err3 = "[%$lngpack.password_err3%]";
			var password_err4 = "[%$lngpack.password_err4%]";
			var password_err5 = "[%$lngpack.password_err5%]";
			$(document).ready(function(){
				$('#password').ESPpasscheck({
					verdects:[password_err1,password_err2,password_err3,password_err4,password_err5]
				});
			})
		</script>
        		<div class="filterorder"><div class="filterbox">密码修改</div></div>
				<form name="editmember" id="editmember" method="post" action="[%$mlink.membersave%]" onsubmit="return editpassword()">
				<input type="hidden" name="upurl" value="[%$upurl%]">
				<input type="hidden" name="inputclass" value="editpassword">
				<input type="hidden" name="userid" value="[%$member.userid%]">
				<input type="hidden" name="username" value="[%$member.username%]">
				<input type="hidden" name="email" value="[%$member.email%]">
				<table>
					<tr>
						<td class="s1">用户名：</td>
						<td class="s2"><u>[%$member.username%]</u></td>
					</tr>
					<tr>
						<td class="s1">电子邮箱：</td>
						<td class="s2"><u>[%$member.email%]</u></td>
					</tr>
					<tr>
						<td class="s1">旧密码：</td>
						<td class="s2">
							<input type="password" name="oldpassword" id="oldpassword" size="18" maxlength="20" class="infoInput"/>
						</td>
					</tr>
					<tr>
						<td class="s1">新密码：</td>
						<td class="s2">
							<input type="password" name="password" id="password" size="18" maxlength="20" class="infoInput"/>  
							<span>6－20 个字符，包括英文字母、中文、数字、下划线</span>
						</td>
					</tr>
					<tr>
						<td class="s1"></td>
						<td class="s2"><span id="passlist"></span></td>
					</tr>
					<tr>
						<td class="s1">重复新密码：</td>
						<td class="s2"><input type="password" name="password2" id="password2" size="18" maxlength="20"  class="infoInput"/></td>
					</tr>
					<tr>
						<td colspan="2" style="height:50px;line-height:50px;">
							<input name="submit" type="submit" class="buttonface" value="确认修改密码"/>
						</td>
					</tr>
				</table>
				</form>
            [%elseif $out=='editemail'%]
            <!--邮箱修改-->
		<script type="text/javascript">
			var password_len = "[%$lngpack.password_err%]";
			var email_match = "[%$lngpack.email_err%]";
		</script>
        		<div class="filterorder"><div class="filterbox">E-mail修改</div></div>
				<form name="editmember" id="editmember" method="post" action="[%$mlink.membersave%]" onsubmit="return editmail()">
				<input type="hidden" name="upurl" value="[%$upurl%]">
				<input type="hidden" name="inputclass" value="editmail">
				<input type="hidden" name="userid" value="[%$member.userid%]">
				<input type="hidden" name="username" value="[%$member.username%]">
				<input type="hidden" name="email" value="[%$member.email%]">
				<table style="width: 100%" class="tablelist">
					<tr>
						<td class="s1">用户名：</td>
						<td class="s2"><u>[%$member.username%]</u></td>
					</tr>
					<tr>
						<td class="s1">原电子邮箱：</td>
						<td class="s2"><u>[%$member.email%]</u></td>
					</tr>
					<tr>
						<td class="s1">密码：</td>
						<td class="s2"><input type="password" name="password" id="password" size="18" maxlength="15" class="infoInput"/></td>
					</tr>
					<tr>
						<td class="s1">新电子邮箱：</td>
						<td class="s2"><input type="text" name="email" id="email" size="40" maxlength="100"  class="infoInput" onblur="checktypename('email',this.value,'[%$mlink.checkusername%]','mailmsg','[%$lngpack.mem_regemail_ok%]','[%$lngpack.mem_regemail_no%]','editmailsubmit');" /> <span id="mailmsg"></span></td>
					</tr>
					<tr>
						<td colspan="2" style="height:50px;line-height:50px;">
							<input name="submit" type="submit" class="buttonface" value="确认修改E-mail"/>
						</td>
					</tr>
				</table>
				</form>
                [%elseif $out=='orderlist'%]
                <div class="filterorder"><div class="filterbox">酒店订单列表</div></div>
				[% if count($array) > 0 %]
				<table>
					<tr>
						<td class="s4" style="width:10%;">订单编号</td>
                        <td class="s4" style="width:20%;">酒店名称</td>
                        <td class="s4" style="width:8%;">房型</td>
                        <td class="s4">客人姓名</td>
						<td class="s4">订单金额</td>
						<td class="s4">订单状态</td>
						<td class="s4" style="width:20%;">预订时间</td>
					</tr>
					[%forlist from=$array key=i%]
					<tr>
						<td class="s3" style="text-align:center;width:10%;">[%$array[i].HotelOrderID%]</td>
                        <td class="s3" style="text-align:center;width:20%;"><a href="[%$array[i].hotelurl%]" title="[%$array[i].HotelName%]" target="_blank">[%$array[i].HotelName|cuthtml(11)%]</a></td>
                        <td class="s3" style="text-align:center;width:8%">[%$array[i].RoomTypeName%]</td>
                        <td class="s3" style="text-align:center">[%$array[i].Guest_Name%]</td>
						<td class="s3" style="text-align:center">[%$array[i].TotalPrice%]元</td>
						<td class="s3" style="text-align:center">[%$array[i].OrderState%]</td>
						<td class="s3" style="text-align:center;width:20%;">[%$array[i].OrderDatetime%]</td>
					</tr>
					[%/forlist%]
                    <tr>
                    	<td colspan="7"><div class="pagelink">[%$pagebotton%]</div></td>
                    </tr>
				</table>
			[%else%]
            <table>
            	<tr><td colspan="7">暂无订单</td></tr>
            </table>
			[%/if%]
            [%elseif $out=='orderread'%]
            <!--订单基本信息-->
		<script type="text/javascript" src="[%$url%]js/ajax_city.js"></script>
		<script type="text/javascript">
		$(function() {
			sec_cityone('[%$read.country%]','[%$read.province%]');
			sec_citytwo('[%$read.province%]','[%$read.city%]');
			sec_district('[%$read.city%]','[%$read.district%]');
		});
		var citytwo_title = "[%$lngpack.citytwo_title%]";
		var citythree_title = "[%$lngpack.citythree_title%]";
		var district_title = "[%$lngpack.district_title%]";
		var count_city_err = "[%$lngpack.count_city_err%]";
		var address_title = "[%$lngpack.address_title%]";
		var zipcode_empty = "[%$lngpack.zipcode_empty%]";
		var alias_empty = "[%$lngpack.alias_empty%]";
		var email_err = "[%$lngpack.email_err%]";
		var tel_empty = "[%$lngpack.tel_empty%]";
		</script>
        <div class="filterorder"><div class="filterbox">订单基本信息</div></div>
        <table>
            	<tr class="title">
                	<td class="s1">订单号：</td>
                    <td class="s2" id="text_orderid"></td>
                </tr>
                <tr>
                	<td class="s1">订单状态：</td>
                    <td class="s2" style="color:#f00; font-weight:bold;">新订单</td>
                </tr>
                <tr>
                    <td class="s1">总计费用：</td>
                    <td class="s2" style="color:#f00; font-weight:bold;"></td>
                </tr>
                <tr class="title">
                	<td class="s1">酒店名称：</td>
                    <td class="s2"></td>
                </tr>
                <tr>
                    <td class="s1">入住日期：</td>
                    <td class="s2"></td>
                </tr>
                <tr class="title">
                	<td class="s1">客房类型：</td>
                    <td class="s2"></td>
                </tr>
                <tr>
                    <td class="s1">离店日期：</td>
                    <td class="s2"></td>
                </tr>
                <tr class="title">
                	<td class="s1">房间数量：</td>
                    <td class="s2"></td>
                </tr>
                <tr>
                    <td class="s1">到店时间：</td>
                    <td class="s2">18:00</td>
                </tr>
                <tr class="title">
                	<td class="s1">酒店地址：</td>
                	<td class="s2"></td>
                </tr>
                <tr class="title">
                	<td class="s1">备注：</td>
                	<td colspan="3"></td>
                </tr>
            </table>
           [%/if%]
        </div>
    </div>
    <div class="clearLine"></div>
</div>
[%include file="greenhotel/cn/public/footer.html"%]
</body>
</html>